﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SharingCenter.Web.Classes;

namespace SharingCenter.Web.Shared
{
    public partial class NameSearch : System.Web.UI.UserControl
    {
        public Unit Width { get; set; }
        public List<Guid> UserIdList
        {
            get
            {
                List<Guid> ret = new List<Guid>();
                string[] s = hiddenVal.Value.Split(WebConsts.STR_SEPERATOR);
                foreach (string str in s)
                {
                    try
                    {
                        ret.Add(new Guid(str));
                    }
                    catch { }
                }
                return ret;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Panel1.Width = Width;
        }
    }
}